import 'package:mziot/app/data/group_down_entity.dart';
import 'package:mziot/generated/json/base/json_convert_content.dart';

GroupDownEntity $GroupDownEntityFromJson(Map<String, dynamic> json) {
  final GroupDownEntity groupDownEntity = GroupDownEntity();
  final int? id = jsonConvert.convert<int>(json['id']);
  if (id != null) {
    groupDownEntity.id = id;
  }
  final String? groupName = jsonConvert.convert<String>(json['groupName']);
  if (groupName != null) {
    groupDownEntity.groupName = groupName;
  }
  final int? deviceNum = jsonConvert.convert<int>(json['deviceNum']);
  if (deviceNum != null) {
    groupDownEntity.deviceNum = deviceNum;
  }
  return groupDownEntity;
}

Map<String, dynamic> $GroupDownEntityToJson(GroupDownEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['id'] = entity.id;
  data['groupName'] = entity.groupName;
  data['deviceNum'] = entity.deviceNum;
  return data;
}
